#ifndef ITEMDELEGATE_H
#define ITEMDELEGATE_H

#include <QObject>
#include <QPainter>
#include <QStyleOptionViewItem>
#include "ItemBody.h"
#include <QStyledItemDelegate>
#include "ItemModel.h"
#include "ItemData.h"

class ItemDelegate : public QStyledItemDelegate
{
    Q_OBJECT
public:
    ItemDelegate();

    explicit ItemDelegate(ItemModel *studentListViewModel, QObject *parent = 0);

protected:
    void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;

private:
    ItemModel *m_seamListViewModel;
    ItemBody  *body;
};

#endif // ITEMDELEGATE_H
